<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // const name = "jack";
      // const age = 20;
      const info = {
        name: "jack",
        age: 20,
      };

      console.log("删除前", info);

      delete info.name;
      delete info.age;

      console.log("删除后", info);
    </script>
  </body>
</html>
